home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
c
/
ppl4c.exe
/
PPL4C.USR
< prev
next >
Wrap
Text File
|
1992-10-17
|
52KB
|
1,368 lines
Personal Protocol Library
For the C Language
(PPL4C)
USERS MANUAL
Version 1.0
Aug 16, 1992
This software is provided as-is.
There are no warranties, expressed or implied.
Copyright (C) 1992
All rights reserved
MarshallSoft Computing, Inc.
Post Office Box 4543
Huntsville AL 35815
Phone (205) 881-4630
PPL4C Users Manual Page 1
C O N T E N T S
Chapter Page
1.0 Introduction..............................................3
1.1 Compiling the Library.................................3
1.2 User Support..........................................4
1.3 Installation..........................................5
2.0 State Drivers.............................................6
3.0 File Transfer Protocols...................................7
3.1 XMODEM................................................7
3.2 XMODEM-CRC............................................9
3.3 XMODEM-1K.............................................9
3.4 XMODEM-G.............................................10
3.5 YMODEM...............................................10
3.6 YMODEM-G.............................................10
4.0 Protocol Library Functions...............................11
4.1 xyAbort..............................................11
4.2 xyDriver.............................................11
4.3 xyGetErrorCode.......................................12
4.4 xyGetErrorState......................................12
4.5 xyGetFilename........................................12
4.6 xyGetNAKs............................................12
4.7 xyGetPacket..........................................12
4.8 xyGetState...........................................12
4.9 xyInit...............................................13
4.10 xyStartRx...........................................13
4.11 xyStartTx...........................................13
5.0 The FILEXFER.C Demonstration Program.....................14
5.1 Introduction.........................................14
5.2 The FILEXFER.H Parameter File........................15
5.3 Running FILEXFER.....................................16
6.0 Using The Protocol Library...............................17
6.1 Keyboard Input.......................................17
6.2 Disk I/O.............................................18
6.3 Serial I/O...........................................18
6.4 Other Events.........................................18
7.0 Problems.................................................19
8.0 Legal Issues.............................................20
8.1 Registration.........................................21
8.2 License..............................................21
8.3 Warranty.............................................21
9.0 Revision History.........................................21
10.0 Other MarshallSoft Computing Products....................22
10.1 The Personal Communications Library for C...........22
10.2 The LZW Data Compression Library for C..............22
PPL4C Users Manual Page 2
1.0 Introduction
The Personal Protocol Library (PPL) consist of a state driven
library which implements the XMODEM, XMODEM-CRC, XMODEM-1K,
XMODEM-G, YMODEM, and YMODEM-G file transfer protocols. This
allows the programmer to run multiple protocol transfers
simultaneously while interacting with the user at the keyboard.
The PPL requires the Personal Protocol Library (PCL), also
available from MarshallSoft Computing. The user should be
familiar with PCL before attempting to understand the protocol
driver. Refer to section "Other MarshallSoft Computing Products".
What are the advantages of a state driven protocol library ? The
answer is any type of communications program which requires
"background" protocol file transfers. A few examples are:
(1) EXAMPLE-1: A program that can read incoming stock market data
continuously while the main application is doing technical
analysis.
(2) EXAMPLE-2: A custom BBS program that can handle two file
transfers simultaneously.
See the section 8.1 "Registration" for an offer who might not want
to refuse!
1.1 Compiling the Library
There are three small model library files provided:
ppl4c_sb.lib -- Borland Turbo C library.
ppl4c_sm.lib -- Microsoft C library.
ppl4c_sx.mix -- MIX Power C library.
The registered user can recompile the source code (source code is
provided in the registered version only) for the library using one
of the three provided batch files:
make_sb.bat -- make small Borland Turbo C library (ppl4c_sb.lib).
make_sm.bat -- make small Micrsoft C library (ppl4c_sm.lib).
make_sx.bat -- make small MIX Power C library (ppl4c_sx.mix).
PPL4C Users Manual Page 3
1.2 User Support
We want you to be successful in developing your applications using
PPL4C! We depend on our customers to let us know what they need
in a protocol library. This means we are committed to providing
the best communications library that we can. If you have any
suggestions or comments, please write to us or give us a call.
If you are having a problem using PPL4C, call (205) 881-4630
between 5 PM and 9 PM CST Monday through Saturday. You can call at
other times and leave a message, and call back later during our
regular business hours for a reply. You can also FAX us at this
same number at any time.
You may also call our 24 hour BBS (2400 baud, no parity, 8 data
bits, 1 stop bit) at any time. The BBS will contain the latest
shareware version of PPL4C, messages, and other related files. All
files are in standard ZIP format. You can leave a message on the
BBS, and we will usually have a reply ready for you within 24
hours. The dedicated telephone number is 205-880-9748. Set your
modem for 2400 baud, 8 data bits, no parity, one stop bit.
The MarshallSoft Computing, Inc. newsletter "Comm Talk" is
published quarterly. It discusses various communications problems
and solutions using PCL4C (the communications library) and PPL4C
(the protocol library) as well as related information. Registered
users receive a one year complimentary subscription when first
registering and for each update purchased.
Of course, you can always write to us. You should receive a reply
within one to two weeks.